package cn.lingyangwl.agile.infra.job.task;

import cn.lingyangwl.agile.misc.statistic.*;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author shenguangyang
 */
@Slf4j
@Component(value = "statisticSyncTask")
public class StatisticSyncTask implements ITask {
    @Resource
    private StatisticApi statisticApi;

    /**
     * 执行统计访问数据任务
     */
    public void exec() {
        log.info("exec statistic sync task");
        statisticApi.syncTask();
    }
}
